package com.yisin.www.chat;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.yisin.pbox.www.common.frame.BaseAction;

public class ChatAction extends BaseAction {

	public String inchat(){
		System.out.println("--->" + request.getSession().getId());
		return "page";
	}
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public void getUserList(){
		String userId = request.getParameter("userId");
		List list = new ArrayList();
		for(Map.Entry<String, Map<String, String>> entry : ChatServlet.userMap.entrySet()){
			list.add(entry.getValue());
		}
		outListToJson(list, list.size(), userId, 0, null);
	}

}
